<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>my app</title>
</head>
<body>
<h1>我的客户端</h1>
<!-- All of the Node.js APIs are available in this renderer process. -->
We are using Node.js
<script>document.write(process.versions.node)</script>
,
Chromium
<script>document.write(process.versions.chrome)</script>
,
and Electron
<script>document.write(process.versions.electron)</script>
.
</body>

<script>
    // You can also require other files to run in this process
    require('./renderer.js')

    var alertOnlineStatus = function () {
        window.console.log(navigator.onLine ? 'online' : 'offline');
    };

    window.addEventListener('online', alertOnlineStatus);
    window.addEventListener('offline', alertOnlineStatus);

    alertOnlineStatus();
</script>
</html>
